package com.quyunshuo.module.home.activity.history

import android.util.Log
import com.quyunshuo.edwinpro.base.mvvm.m.BaseRepository
import com.quyunshuo.edwinpro.network.bean.ArticleListRes2
import com.quyunshuo.edwinpro.network.HomeApiService
import com.quyunshuo.edwinpro.network.bean.BaseResponse
import com.quyunshuo.module.home.room.database.SumDataBase
import javax.inject.Inject

/**
 * 首页M层
 *
 * @author Qu Yunshuo
 * @since 5/25/21 5:42 PM
 */
class HistoryRepository @Inject constructor() : BaseRepository() {

    private val dao by lazy {
        SumDataBase.getInstance().concentrationDao()
    }


    suspend fun getAll() = dao.getAll()

    fun getAllConcentration() = dao.getAllConcentration()

    suspend fun deleteById(id:Long) = dao.deleteById(id)
}